package model;

import java.util.Vector;


public abstract class ModelTile {
	
	protected ModelTile[] neighbors;
	protected ModelConstraint[][] constraints;
	protected Vector<ModelPosition> positions;	
	abstract public void rotate();
	abstract public boolean canPutTile(ModelTile[] neighbors);
	
	public ModelConstraint getConstraint(int i, int j) {
		if(this.constraints[i][j]!=null)
			return this.constraints[i][j];
		return null;
	}
}
